{include file="public/layout"/}
<body data-type="generalComponents">
<div class="tpl-content-wrapper js-check-wrap">
    <ol class="am-breadcrumb">
        <li><a href="javascript:void(0)" onclick="javascript:parent.openItem('welcome|Index');" class="am-icon-home">首页</a></li>
        <li class="am-active">权限</li>
        <li class="am-active">管理员日志</li>
    </ol>
    <div class="tpl-portlet-components">
        <div class="tpl-block">
            <form method="post">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">&nbsp;</div>
                    <div class="am-u-sm-12 am-u-md-3">
                        <div class="am-input-group am-input-group-sm">
                            <input type="text" class="am-form-field" name="admin_name" value="{$admin_name ?? ''}" placeholder="管理员名称">
                            <span class="am-input-group-btn">
                                <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="submit"></button>
                            </span>
                        </div>
                    </div>
                </div>
            </form>
            <form class="js-ajax-form" method="post">
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-md-6">
                        <div class="am-btn-toolbar am-vertical-align">
                            <div class="am-btn-group am-btn-group-xs">
                                {$action|actionList|raw}
                            </div>
                            <div class="refresh am-vertical-align-middle">
                                <div class="refresh_tit" title="刷新数据"><i class="am-icon-refresh"></i></div>
                                <div class="refresh_span">刷新 - 共{$pager->totalRows}条记录</div>
                            </div>
                        </div>
                    </div>
                </div>
                <input type="hidden" name="act" value="del">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form class="am-form">
                            <table class="am-table am-table-striped am-table-hover table-main">
                                <thead>
                                <tr>
                                    <th class="table-id">ID</th>
                                    <th class="table-title">角色名称</th>
                                    <th class="table-type">描述</th>
                                    <th class="table-author am-hide-sm-only">IP</th>
                                    <th class="table-date am-hide-sm-only">操作时间</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="v"}
                                <tr>
                                    <td>{$v.log_id}</td>
                                    <td>{$v.user_name}</td>
                                    <td>{$v.log_info}</td>
                                    <td class="am-hide-sm-only">{$v.log_ip}</td>
                                    <td class="am-hide-sm-only">{$v.log_time|date="Y-m-d H:i:s"}</td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                            <div class="am-cf">
                                {$page|raw}
                            </div>
                            <hr>

                        </form>
                    </div>

                </div>
            </form>
        </div>
        <div class="tpl-alert"></div>
    </div>
</div>

<script src="__ADMIN__/js/admin.js"></script>
</body>
</html>